<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
		function sum (num){
			var b=0;
			for(var i = 1; i<=num; i++){
				b+=i;
				if (i==10){
					return b;
				}
			}
			return b;
		}
		var data=sum(100);		
		alert(data);
	</script>
</head>
<body>
	
</body>
</html>